package com.wxg.guice.bb;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.name.Named;
import com.wxg.guice.aa.Player;

public class PlayerClient {

	public static void main(String[] args) {
		PlayerModule module = new PlayerModule();
		Injector injector = Guice.createInjector(new Module[]{module});
		
		/**
		 * 以下代码报错!
		 */
//		@Named("Good") Player goodPlayer = (Player)injector.getInstance(Player.class);
	}
}
